﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebApp.Extensions;
using WebApp.Models;
using Telerik.Web.Mvc;

namespace WebApp.Extensions
{
	public partial class SelectListHandler
	{
	
		public static SelectList ENT_Attivita()
        {
            return ENT_Attivita(null);
        }

        public static SelectList ENT_Attivita(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Attivita.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Cameriere()
        {
            return ENT_Cameriere(null);
        }

        public static SelectList ENT_Cameriere(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Cameriere.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Centro()
        {
            return ENT_Centro(null);
        }

        public static SelectList ENT_Centro(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Centro.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Cliente()
        {
            return ENT_Cliente(null);
        }

        public static SelectList ENT_Cliente(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Cliente.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Gruppo()
        {
            return ENT_Gruppo(null);
        }

        public static SelectList ENT_Gruppo(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Gruppo.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Ingrediente()
        {
            return ENT_Ingrediente(null);
        }

        public static SelectList ENT_Ingrediente(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Ingrediente.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Piatto()
        {
            return ENT_Piatto(null);
        }

        public static SelectList ENT_Piatto(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Piatto.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Sala()
        {
            return ENT_Sala(null);
        }

        public static SelectList ENT_Sala(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Sala.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Stampante()
        {
            return ENT_Stampante(null);
        }

        public static SelectList ENT_Stampante(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Stampante.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
	
		public static SelectList ENT_Tavolo()
        {
            return ENT_Tavolo(null);
        }

        public static SelectList ENT_Tavolo(String selected)
        {
            var entities = new Entities();
            return new SelectList(entities.ENT_Tavolo.OrderBy(x => x.Nome), "Guid", "Nome", selected);
        }
		}
}
